package com.glepoch.springbootsecuritymybatis.compoment.constant.statuscode;

/**
 * @description: 基础状态码
 * @author: ygl
 * @time: 20201204
 */
public enum NormalStatusCode implements BaseStatusEnum {
    SUCCESS(2000, "成功！"),
    NOHANDLER(4004, "无法找到请求的资源！"),
    FAIL(5000, "服务器异常，请联系管理员处理！");
    private int code;
    private String message;

    NormalStatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
